﻿using System;
using System.Data;
using System.Configuration;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections;
using System.ComponentModel;

using System.Drawing.Design;
using TA.Turbo.Design;

namespace TA.Turbo.Controls
{
	/// <summary>
	/// Stylesheet include from a file in the Web application directory.
	/// </summary>
	public class StyleFileInclude : BaseFileInclude, IStyleInclude
	{
		#region PUBLIC
		#region INIT
		/// <summary>
		/// Ctor.
		/// </summary>
		public StyleFileInclude()
		{
			//
			// TODO: Add constructor logic here
			//
		}
		#endregion
		#region PROPS
		/// <summary>
		/// Gets or sets the virtual path of the file to be included.
		/// </summary>
		[Editor(typeof(StylesheetUrlEditor), typeof(UITypeEditor))]
		public override string Src
		{
			get
			{
				return base.Src;
			}
			set
			{
				base.Src = value;
			}
		}
		public override IncludeType IncludeType
		{
			get { return IncludeType.Style; }
		}
		#endregion
		#region METHODS
		public override string GetClientUrl()
		{
			return TPage.DoResolveUrl(this.Src);
		}
		#endregion
		#endregion
	}
}